#pragma once

#include "..\Public\HJ_Define.h"

#include "..\Util\HJ_uParser.h"
#include ".\GeomStructure.h"
#include ".\AnimStructure.h"
#include ".\ToolStructure.h"
#include ".\Animation.h"

enum	IMPORTER_ERROR
{
    GEOM_ERROR = 2,
	ANIM_ERROR,
	MTRL_ERROR,
};

class CImporter
	: public HJ_uParser
{
public:
    BOOL	ImporterGeomFile( TCHAR* szFile , Geom* &pGeom , ToolData &pToolData , int& nNum , int& mObjNum );
	BOOL	ImporterMtrlFile( TCHAR* szFile , Mtrl* &pMtrl , int& nNum );
	BOOL	ImporterAnimFile( TCHAR* szFile , CAnimation &Anim );

public:
	CImporter(void) {};
	~CImporter(void) { if( m_pFile  ) { fclose( m_pFile ); m_pFile = NULL; } }
};
